package com.evil.application.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.evil.application.pojo.entity.ApplicationRobotLog;
import com.evil.common.application.dto.robot.action.RobotActionReqDTO;
import com.evil.common.application.enums.robot.RobotActionResultEnum;

import java.util.List;

/**
 * 应用机器人日志表
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
public interface ApplicationRobotLogService extends IService<ApplicationRobotLog> {

    int updateBatch(List<ApplicationRobotLog> list);

    int batchInsert(List<ApplicationRobotLog> list);

    /**
     * 插入机器人日志
     *
     * @param robotActionReqDTO robotActionReqDTO
     * @return logId
     */
    Long insertRobotLog(RobotActionReqDTO robotActionReqDTO);

    /**
     * 更新机器人日志状态
     *
     * @param logId      logId
     * @param resultEnum resultEnum
     */
    void updateRobotStatus(Long logId, RobotActionResultEnum resultEnum);
}


